]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Fix DESKTOP clone position
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 24 Jan 2014 22:05:46 +0000 (23:05 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 30 Jan 2014 23:00:07 +0000 (00:00 +0100)
The DESKTOP window might not be located at (0,0), in particular
on multi-monitor setups. While we already consider this by setting
the clone's position, we then stuff the clone into a container which
ignores it - meh ...

https://bugzilla.gnome.org/show_bug.cgi?id=723306

js/ui/overview.js

index f4ea362a3842fcac6b12aa91c9a65605c9f67299..061175dd31862893541dd123959458f6b8875f0c 100644 (file)
@@ -131,7 +131,7 @@ const Overview = new Lang.Class({
         Main.layoutManager.overviewGroup.add_child(this._backgroundGroup);
         this._bgManagers = [];
 
-        this._desktopFade = new St.Bin();
+        this._desktopFade = new St.Widget();
         Main.layoutManager.overviewGroup.add_child(this._desktopFade);
 
         this._activationTime = 0;
@@ -493,8 +493,8 @@ const Overview = new Lang.Class({
     },
 
     fadeOutDesktop: function() {
-        if (!this._desktopFade.child)
-            this._desktopFade.child = this._getDesktopClone();
+        if (!this._desktopFade.get_n_children())
+            this._desktopFade.add_child(this._getDesktopClone());
 
         this._desktopFade.opacity = 255;
         this._desktopFade.show();